function install (Vue, vm) {
	// 用户登录
	let userLogin = (params = {}) => vm.$u.post('/user.user/login', params);
	// h5手机登录
	let mobileLogin = (params = {}) => vm.$u.post('/user.user/mobileLogin', params);
	
	// 用户信息
	let userInfo = (params = {}) => vm.$u.get('/user.index/detail', params);
	
	// 用户设置
	let getUserSetting = (params = {}) => vm.$u.get('/user.index/setting', params);
	
	// 修改用户
	let postUpdateInfo = (params = {}) => vm.$u.post('user.user/updateInfo', params);
	
	// 地址添加
	let postAddress = (params = {}) => vm.$u.post('/user.address/add', params);
	
	// 地址修改
	let postAddressEdit = (params = {}) => vm.$u.post('/user.address/edit', params);
	
	// 地址详情
	let getAddressDetail = (params = {}) => vm.$u.get('/user.address/detail', params);
	
	// 地址列表
	let getAddress = (params = {}) => vm.$u.get('/user.address/lists', params);
	
	// 地址默认
	let postSetDefault = (params = {}) => vm.$u.post('/user.address/setDefault', params);
	
	// 地址删除
	let deleteAddress = (params = {}) => vm.$u.get('/user.address/delete', params);
	
	// 领取优惠券
	let postCoupon = (params = {}) => vm.$u.post('/user.coupon/receive', params);
	
	// 获取退款信息
	let getRefund = (params = {}) => vm.$u.get('/user.refund/apply', params);
	
	// 提交退款信息
	let postRefund = (params = {}) => vm.$u.post('/user.refund/apply', params);
	
	// 退款信息列表
	let getRefundList = (params = {}) => vm.$u.post('/user.refund/lists', params);

	// 根据当前用户获取配送员信息
	let getUserDelivery = (params = {}) => vm.$u.post('/delivery.user/index', params);
	
	// 待配送列表
	let getDeliveryLists = (params = {}) => vm.$u.get('/delivery.order/lists', params);
	
	// 待配送列表
	let getDeliveryDetail = (params = {}) => vm.$u.get('/delivery.order/detail', params);
	
	// 接单
	let postReceiving = (params = {}) => vm.$u.post('/delivery.order/receiving', params);
	
	// 配送员取货
	let postClaimProduct = (params = {}) => vm.$u.post('/delivery.order/claimProduct', params);
	
	// 配送完成
	let postDeliveryCompleted = (params = {}) => vm.$u.post('/delivery.order/deliveryCompleted', params);
	
	// 时时保存经纬度
	let postAsyncSaveCoord = (params = {}) => vm.$u.post('/delivery.order/asyncSaveCoord', params);
	
	// 时时获取经纬度
	let getAsyncGetCoord = (params = {}) => vm.$u.get('/delivery.order/asyncGetCoord', params);
	
	// 添加个人发票信息
	let postCreateData = (params = {}) => vm.$u.post('/order.invoice/createData', params);

	// 个人发票信息列表
	let getInvoice = (params = {}) => vm.$u.get('/order.invoice/listData', params);
	
	// 个人发票信息详情
	let getInvoiceOne = (params = {}) => vm.$u.get('/order.invoice/one', params);
	
	// 个人发票信息更新
	let postUpdateInvoice = (params = {}) => vm.$u.post('/order.invoice/updateData', params);
	
	// 个人发票信息删除
	let postDeleteInvoice = (params = {}) => vm.$u.post('/order.invoice/deleteData', params);
	
	// 订单开票
	let postInvoiceOrder = (params = {}) => vm.$u.post('/order.invoice_order/createData', params);
	
	// 订单开票
	let getInvoiceOrder = (params = {}) => vm.$u.post('/order.invoice_order/listData', params);
	
	// 添加意见反馈
	let postFeedBack = (params = {}) => vm.$u.post('/settings.feed_back/createData', params);
	
	// 我的收藏/关注
	let getFavorite = (params = {}) => vm.$u.get('/user.Favorite/list', params);
	
	// 申请推广员
	let postAgentApply = (params = {}) => vm.$u.post('/plus.agent.apply/submit', params);
	
	// 获取推广员信息
	let getAgent = (params = {}) => vm.$u.get('/user.agent/center', params);
	
	// 获取推广员码
	let getAgentQrcode = (params = {}) => vm.$u.get('/plus.agent.qrcode/poster', params);
	
	// 我的优惠券列表
	let getCoupon = (params = {}) => vm.$u.get('/user.coupon/lists', params);
	
	// 获取手机号
	let postBindMobile = (params = {}) => vm.$u.post('/user.user/bindMobile', params);
	
	// 获取Session
	let postSession = (params = {}) => vm.$u.post('/user.user/getSession', params);
	
	// 获取推荐列表
	let getUserInviteLists = (params = {}) => vm.$u.get('/user.user/getuserinvitelist', params);
	
	// 获取最近常用地址
	let minDistanceAddress = (params = {}) => vm.$u.get('/user.address/minDistanceAddress', params);
		
	// 获取配送员列表
	let getVillageList = (params = {}) => vm.$u.get('/store.store/getVillageList', params);

	// 获取配送员信息
	let getShopperInfo = (params = {}) => vm.$u.post('/delivery.user/getShopperInfo', params);
	
	// 转单
	let transferOrder = (params = {}) => vm.$u.post('/delivery.order/transferOrder', params);

	// 获取配送员订单列表
	let deliveryOrderLists = (params = {}) => vm.$u.post('/delivery.order/lists', params);

	// 配送员接单
	let postShopperReceiving = (params = {}) => vm.$u.post('/delivery.order/shopperReceiving', params);

	// 配送员信息
	let postShopperInfo = (params = {}) => vm.$u.post('/delivery.user/getShopperInfo', params);

	// 获取客服
	let getCustomer = (params = {}) => vm.$u.get('/index/getWxcustomers', params);


	// 再来一单
	let postCartAddOrder = (params = {}) => vm.$u.post('/order.cart/addOrder', params);

	// 广告列表
	let getAdIndex = (params = {}) => vm.$u.get('/market.market/index', params);

	// 售后详情
	let getOrderRefundDetail = (params = {}) => vm.$u.get('/user.refund/getOrderRefundDetail', params);
	
	// 发票详情
	let getInvoice_order= (params = {}) => vm.$u.get('/order.invoice_order/getDetail', params);

	// 发票记录
	let getInvoiceLogData= (params = {}) => vm.$u.get('/order.invoice_order/getInvoiceLogData', params);

	// 分享页面详情
	let getConfigDataDetail= (params = {}) => vm.$u.get('/settings.dic/getConfigDataDetail', params);
	
	// 申请摊位
	let postStallSubmit = (params = {}) => vm.$u.post('/stall.apply/submit', params);

	// 申请摊位状态
	let getApplyStatus = (params = {}) => vm.$u.get('/stall.apply/status', params);

	// 业主申请
	let postOwnerApply = (params = {}) => vm.$u.post('/user.user/ownerApply', params);

	// 业主申请状态
	let getOwnerApplyStatus = (params = {}) => vm.$u.get('/user.user/getOwnerApplyStatus', params);
	
	// 页面详情
	let getPageDataDetail = (params = {}) => vm.$u.get('/index/diy', params);

	let checkUserLoginToken = () => vm.$u.get('/index/checkUser');


	// 取消转单
	let cltransferOrder = (params = {}) => vm.$u.post('/delivery.order/canceltransferOrder', params);
	
	// 取消转单
	let completeTransfer = (params = {}) => vm.$u.post('/delivery.order/completeTransferOrder', params);


	// app登录
	let posAppLogin = (params = {}) => vm.$u.post('/user.user/appLogin', params);


	// 修改配送员信息
	let updateShopper = (params = {}) => vm.$u.post('/delivery.user/updateShopper', params);
	
	// 绑定ws
	let userBind = (params = {}) => vm.$u.post('/delivery.user/bind', params);

	// 获取订单数量
	let getOrderNum = (params = {}) => vm.$u.get('/delivery.order/getOrderNum', params);

	// 添加备注
	let postAddRemarks = (params = {}) => vm.$u.post('/delivery.order/addRemarks', params);

	// 用户自提
	let posuserPickup = (params = {}) => vm.$u.post('/delivery.order/userPickup', params);

	// 新人专区文字
	let getNewPeopleText = (params = {}) => vm.$u.get('/index/newpeopleText', params);
	
	// 异业合作摊位地址详情
	let getAddressDetailStall = (params = {}) => vm.$u.get('/stall.apply/address', params);
	
	return {
		minDistanceAddress,
		userLogin,
		mobileLogin,
		userInfo,
		getUserSetting,
		postUpdateInfo,
		postAddress,
		getAddressDetail,
		postAddressEdit,
		getAddress,
		postSetDefault,
		deleteAddress,
		postCoupon,
		getRefund,
		postRefund,
		getRefundList,
		getUserDelivery,
		getDeliveryLists,
		getDeliveryDetail,
		postReceiving,
		postClaimProduct,
		postDeliveryCompleted,
		postAsyncSaveCoord,
		getAsyncGetCoord,
		postCreateData,
		getInvoice,
		getInvoiceOne,
		postUpdateInvoice,
		postDeleteInvoice,
		postInvoiceOrder,
		getInvoiceOrder,
		postFeedBack,
		getFavorite,
		postAgentApply,
		getAgent,
		getAgentQrcode,
		getCoupon,
		postBindMobile,
		postSession,
		getUserInviteLists,
		getVillageList,
		getShopperInfo,
		transferOrder,
		deliveryOrderLists,
		postShopperReceiving,
		postShopperInfo,
		getCustomer,
		postCartAddOrder,
		getAdIndex,
		getOrderRefundDetail,
		getInvoice_order,
		getInvoiceLogData,
		getConfigDataDetail,
		postStallSubmit,
		getApplyStatus,
		postOwnerApply,
		getOwnerApplyStatus,
		checkUserLoginToken,
		getPageDataDetail,
		cltransferOrder,
		completeTransfer,
		posAppLogin,
		updateShopper,
		userBind,
		getOrderNum,
		postAddRemarks,
		posuserPickup,
		getNewPeopleText,
		getAddressDetailStall

	};
	
}

export default install